import useI18n from '@/i18n'

const i18n = useI18n.global

export const itemStyle = {
    marginBottom: 0
}
export const cellStyle = {
    height: '80px',
}
export const searchBaseConfig = []

export const tableBase = [
    {
        label: i18n.t('myThail.config.310049-0'),
        width: 150,
        prop: 'packName'
    },
    {
        label: i18n.t('myThail.config.310049-1'),
        width: 180,
        prop: 'number',
        wetherFix: true,
    },
    {
        label: i18n.t('myThail.config.310049-2'),
        width: 160,
        prop: 'amount'
    },
    {
        label: i18n.t('myThail.config.310049-3'),
        width: 160,
        prop: 'createTime'
    },
    {
        label: i18n.t('myThail.config.310049-4'),
        width: 160,
        prop: 'endTime'
    },
    {
        label: i18n.t('myThail.config.310049-5'),
        prop: 'useNumber',
        width: 170,
        wetherFix: true
    },
    {
        label: i18n.t('myThail.config.310049-6'),
        width: 170,
        slotName: 'resetNumber'
    },
    {
        label: i18n.t('myThail.config.310049-7'),
        width: 150,
        prop: 'userName'
    },
    {
        label: i18n.t('myThail.config.310049-8'),
        slotName: 'status'
    }
]

export const dialogBaseConfig = [
    {
        label: i18n.t('myThail.config.310049-9'),
        type: 'select',
        field: 'channelId',
        options: [],
        optionsKey: 'name',
        optionsValue: 'id',
        rules: [
            { required: true, message: i18n.t('myThail.config.310049-10'), trigger: 'blur' }
        ],
        otherOptions: {
            placeholder: i18n.t('myThail.config.310049-10')
        }
    },
    {
        label: i18n.t('myThail.config.310049-0'),
        type: 'input',
        field: 'name',
        rules: [
            { required: true, message: i18n.t('myThail.config.310049-11'), trigger: 'blur' }
        ],
        otherOptions: {
            placeholder: i18n.t('myThail.config.310049-11')
        }
    },
    {
        label: '发送数量(条目)',
        type: 'customNumber',
        field: 'number',
        rules: [
            { required: true, message: i18n.t('myThail.config.310049-14'), trigger: 'blur' }
        ],
        otherOptions: {
            placeholder: i18n.t('myThail.config.310049-14')
        }
    },
    {
        label: i18n.t('myThail.config.310049-15'),
        type: 'customNumber',
        field: 'amount',
        rules: [
            { required: true, message: i18n.t('myThail.config.310049-16'), trigger: 'blur' }
        ],
        otherOptions: {
            placeholder: i18n.t('myThail.config.310049-16')
        }
    },
]